package request

import (
	"gitee.com/g-qs/gin-vue-admin/server/model/common/request"
	"gitee.com/g-qs/gin-vue-admin/server/model/health"
	"gitee.com/g-qs/gin-vue-admin/server/model/user"
	"time"
)

type HealthQAndASearch struct {
	//system.SysUser
	health.HealthQAndA
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

type HealthQAndASearchReq struct {
	ID             uint       `json:"id" from:"id" gorm:"column:id"`
	Question       string     `json:"question" form:"question" gorm:"column:question;comment:问题;type:text;"` //问题
	NickName       string     `json:"nickName" form:"nickName" gorm:"column:question;comment:问题;type:text;"` //问题
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

type HealthQAndASearchRsp struct {
	list []health.HealthQAndA
}

type HealthQuestionSearch struct {
	user.User
	health.HealthQuestion
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}
